package com.sunda.spmsoversea.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 海外仓采购订单表
 * </p>
 *
 * @author Wayne
 * @since 2021-12-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("OVERSEA_PURCHASE_ORDER")
@ApiModel(value="OverseaPurchaseOrder对象", description="海外仓采购订单表")
public class OverseaPurchaseOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "采购订单表uuid")
    @TableId("UUID_PURCHASE_ORDER")
    private String uuidPurchaseOrder;

    @ApiModelProperty(value = "采购凭证号PO")
    @TableField("SAP_PURCHASE_ORDER")
    private String sapPurchaseOrder;

    @ApiModelProperty(value = "业务标识(01空运人带;02本地采购;03海外转储;05退货订单;)")
    @TableField("BUSINESS_TYPE")
    private String businessType;

    @ApiModelProperty(value = "SAP凭证日期")
    @TableField("SAP_CREATE_DATE")
    private String sapCreateDate;

    @ApiModelProperty(value = "供应商编号")
    @TableField("SUPPLIER_CODE")
    private String supplierCode;

    @ApiModelProperty(value = "供应商名称")
    @TableField("SUPPLIER_DESC")
    private String supplierDesc;

    @ApiModelProperty(value = "发货/转出工厂")
    @TableField("WERKS_DELIVERY")
    private String werksDelivery;

    @ApiModelProperty(value = "采购组(当业务标识为01、03时，满足下列数据的值才取，240海外转储，260为空运，250人带)")
    @TableField("PURCHASE_GROUP")
    private String purchaseGroup;

    @ApiModelProperty(value = "采购组织")
    @TableField("PURCHASE_ORG")
    private String purchaseOrg;

    @ApiModelProperty(value = "建单人")
    @TableField("CREATE_USER")
    private String createUser;

    @ApiModelProperty(value = "凭证类型(当业务标识为02时，ZN03为本地采购订单)")
    @TableField("VOUCHER_TYPE")
    private String voucherType;

    @ApiModelProperty(value = "SAP表头文本")
    @TableField("SAP_REMARK")
    private String sapRemark;

    @ApiModelProperty(value = "数据状态(默认0能被SAP更新数据；1禁止更新数据；)")
    @TableField("DATA_STATUS")
    private String dataStatus;

    @ApiModelProperty(value = "数据版本号")
    @TableField("DATA_VERSION")
    private Integer dataVersion;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATE_TIME")
    private Date updateTime;


}
